#include "PoseFromBB.h"

#include "HoldemState.h"

int GetPoseFromBB(HoldemState &aSt,int aScrPose)
{
	int BBPose=0;
	int plPoseFromBB=-1;
	
	

	for(int i=0;i<9;i++)
	{
		
		if(aSt.player[(9+BBPose-i)%9].isActive==true)
		{			
			plPoseFromBB++;
		}

		if((9+BBPose-i)%9==aScrPose)
		{
			return plPoseFromBB;
		}
	}
	return 0;
}